Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

141
Vistas
JavaScript v8 Optimization Compiler | Monomorphism, Polymorphism?

Chrome V8 Optimization Compiler

Is there still a difference between Monomorphism, Polymorphism, and Megamorphism in speed, or not anymore?

Monomorphism => [{a:47}, {a:5}, {a:9}];
Polymorphism => [{a:1, b:65}, {c:22, a:57, d:8},{e:14, a:819}];
...
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

(V8 developer here.)

Yes, and it's safe to assume that there always will be.

What's much harder to say is whether it matters for your application. For instance, it depends on what you're doing. Putting different kinds of objects into an array doesn't make any difference at all; only accessing those objects' properties afterwards encounters the concept of polymorphism (e.g. if you have for (let o of array) { o.a = 42; } elsewhere -- the array doesn't care, the o.a part does).

Also, an effect that's clearly visible in a microbenchmark might only affect a large real-world application within the noise range (say, 1% or less). So it's usually not worth worrying about this, unless you have specific reason (such as: profiling results) to believe that it may be a problem in your case.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda